\hypertarget{app__nunchuk_8c}{}\section{applications/app\+\_\+nunchuk.c File Reference}
\label{app__nunchuk_8c}\index{applications/app\+\_\+nunchuk.\+c@{applications/app\+\_\+nunchuk.\+c}}
{\ttfamily \#include \char`\"{}app.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}ch.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hw.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}mcpwm.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}commands.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}utils.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}timeout.\+h\char`\"{}}\\*
{\ttfamily \#include $<$string.\+h$>$}\\*
{\ttfamily \#include $<$math.\+h$>$}\\*
{\ttfamily \#include \char`\"{}led\+\_\+external.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}datatypes.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}comm\+\_\+can.\+h\char`\"{}}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{app__nunchuk_8c_a0c791a306562ce20ec1ad349f777da0a}{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S}~1
\item 
\#define \hyperlink{app__nunchuk_8c_a3e1fcb34064962c3c05cf97f437fa1d5}{M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E}~5.\+0
\item 
\#define \hyperlink{app__nunchuk_8c_a88250805d93ee01e7ffa6b5646835055}{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}~0.\+1
\item 
\#define \hyperlink{app__nunchuk_8c_ae49fa3cbab7795f6abb4cde49025ccda}{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}~8
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{app__nunchuk_8c_a4b83149efe713656b44533c4f6029fe9}{app\+\_\+nunchuk\+\_\+configure} (\hyperlink{structchuk__config}{chuk\+\_\+config} $\ast$conf)
\item 
void \hyperlink{app__nunchuk_8c_a23777267f18f9d2d2455f474cc58c362}{app\+\_\+nunchuk\+\_\+start} (void)
\item 
float \hyperlink{app__nunchuk_8c_a473fbbed88469ede4861aab07cb4f8e6}{app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk} (void)
\item 
void \hyperlink{app__nunchuk_8c_a35f2368ab07c718db8ec82ce1748b9c8}{app\+\_\+nunchuk\+\_\+update\+\_\+output} (\hyperlink{structchuck__data}{chuck\+\_\+data} $\ast$data)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\hypertarget{app__nunchuk_8c_a88250805d93ee01e7ffa6b5646835055}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E@{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}}
\index{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E@{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E~0.\+1}\label{app__nunchuk_8c_a88250805d93ee01e7ffa6b5646835055}
\hypertarget{app__nunchuk_8c_a3e1fcb34064962c3c05cf97f437fa1d5}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E@{M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E}}
\index{M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E@{M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\+A\+X\+\_\+\+C\+U\+R\+R\+\_\+\+D\+I\+F\+F\+E\+R\+E\+N\+C\+E~5.\+0}\label{app__nunchuk_8c_a3e1fcb34064962c3c05cf97f437fa1d5}
\hypertarget{app__nunchuk_8c_a0c791a306562ce20ec1ad349f777da0a}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S@{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S}}
\index{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S@{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S}]{\setlength{\rightskip}{0pt plus 5cm}\#define O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+I\+O\+N\+\_\+\+T\+I\+M\+E\+\_\+\+M\+S~1}\label{app__nunchuk_8c_a0c791a306562ce20ec1ad349f777da0a}
\hypertarget{app__nunchuk_8c_ae49fa3cbab7795f6abb4cde49025ccda}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S@{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}}
\index{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S@{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S~8}\label{app__nunchuk_8c_ae49fa3cbab7795f6abb4cde49025ccda}


\subsection{Function Documentation}
\hypertarget{app__nunchuk_8c_a4b83149efe713656b44533c4f6029fe9}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!app\+\_\+nunchuk\+\_\+configure@{app\+\_\+nunchuk\+\_\+configure}}
\index{app\+\_\+nunchuk\+\_\+configure@{app\+\_\+nunchuk\+\_\+configure}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{app\+\_\+nunchuk\+\_\+configure(chuk\+\_\+config $\ast$conf)}]{\setlength{\rightskip}{0pt plus 5cm}void app\+\_\+nunchuk\+\_\+configure (
\begin{DoxyParamCaption}
\item[{{\bf chuk\+\_\+config} $\ast$}]{conf}
\end{DoxyParamCaption}
)}\label{app__nunchuk_8c_a4b83149efe713656b44533c4f6029fe9}
\hypertarget{app__nunchuk_8c_a473fbbed88469ede4861aab07cb4f8e6}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk@{app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk}}
\index{app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk@{app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk(void)}]{\setlength{\rightskip}{0pt plus 5cm}float app\+\_\+nunchuk\+\_\+get\+\_\+decoded\+\_\+chuk (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{app__nunchuk_8c_a473fbbed88469ede4861aab07cb4f8e6}
\hypertarget{app__nunchuk_8c_a23777267f18f9d2d2455f474cc58c362}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!app\+\_\+nunchuk\+\_\+start@{app\+\_\+nunchuk\+\_\+start}}
\index{app\+\_\+nunchuk\+\_\+start@{app\+\_\+nunchuk\+\_\+start}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{app\+\_\+nunchuk\+\_\+start(void)}]{\setlength{\rightskip}{0pt plus 5cm}void app\+\_\+nunchuk\+\_\+start (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{app__nunchuk_8c_a23777267f18f9d2d2455f474cc58c362}
\hypertarget{app__nunchuk_8c_a35f2368ab07c718db8ec82ce1748b9c8}{}\index{app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}!app\+\_\+nunchuk\+\_\+update\+\_\+output@{app\+\_\+nunchuk\+\_\+update\+\_\+output}}
\index{app\+\_\+nunchuk\+\_\+update\+\_\+output@{app\+\_\+nunchuk\+\_\+update\+\_\+output}!app\+\_\+nunchuk.\+c@{app\+\_\+nunchuk.\+c}}
\subsubsection[{app\+\_\+nunchuk\+\_\+update\+\_\+output(chuck\+\_\+data $\ast$data)}]{\setlength{\rightskip}{0pt plus 5cm}void app\+\_\+nunchuk\+\_\+update\+\_\+output (
\begin{DoxyParamCaption}
\item[{{\bf chuck\+\_\+data} $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{app__nunchuk_8c_a35f2368ab07c718db8ec82ce1748b9c8}
